package com.hqyj.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/testAjax")
public class TestAjaxController {

    @GetMapping("/test01")
    public String test01(String name){

        System.out.println("name:" + name);
        return "hello";
    }

    @GetMapping("/test02")
    public String test02(String name){

        System.out.println("name:" + name);
        return "hello";
    }

    @PostMapping(value = "/test03")
    public String test03(String name){

        System.out.println("name:" + name);
        return "hello";

    }
}
